﻿/***************************************************************************
//* Foxit Software Inc.
//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
//* and trade secrets of Foxit Software Inc.                                                      *
***************************************************************************/

/**
* 排版使用到的一些常量和结构
*/




define(function (require, exports, module) {
    require('../ViewLevel.js');

    //zoom mode
    WebPDF.PDFView.RD_ZMODE_NONE = 0;
    WebPDF.PDFView.RD_ZMODE_CUSTOM = 1;
    WebPDF.PDFView.RD_ZMODE_ACTUAL_SIZE = 2;
    WebPDF.PDFView.RD_ZMODE_FIT_PAGE = 3;
    WebPDF.PDFView.RD_ZMODE_FIT_WIDTH = 4;
    WebPDF.PDFView.RD_ZMODE_FIT_HEIGHT = 5;
    WebPDF.PDFView.RD_ZMODE_FIT_RECTANGLE = 6;
    WebPDF.PDFView.RD_ZMODE_FIT_VISIBLE = 7;

    //browse mode
    WebPDF.PDFView.RD_BRMODE_CONTINUOUS = 0;
    WebPDF.PDFView.RD_BRMODE_CONTINUOUS_FACING = 1;

    //rotate mode	
    WebPDF.PDFView.RD_ROTATE_POS_TOP = 0;   //[0度]
    WebPDF.PDFView.RD_ROTATE_POS_LEFT = 3;   //[-90度]
    WebPDF.PDFView.RD_ROTATE_POS_BOTTOM = 2;   //[180度]
    WebPDF.PDFView.RD_ROTATE_POS_RIGHT = 1;   //[90度]
    /**
     * Layout information
     * @constructor
     * @ignore
     */
    WebPDF.PDFView.LayoutInfo = function () {
        /**
         * Rotate angle, [0,90,180,270]
         * @type {Number}
         */
        this.rotateAngle = 0;
        /**
         * Mode of zoom
         * @type {Number}
         */
        this.zoomToMode = WebPDF.PDFView.RD_ZMODE_FIT_WIDTH;
        /**
         * 显示模式 Single/Continuous
         * @type {Number}
         */
        this.showMode = WebPDF.PDFView.RD_BRMODE_CONTINUOUS;
        /**
         * 横向显示几页
         * @type {Number}
         */
        this.facingCount = 1;
        this.isReplaceColor = false;
        this.marginX = 0;                          //[Margin的X大小]
        this.marginY = 0;                          //[Margin的Y大小]
        /**
         * 页与页之间的间隔, Web Reader中暂时不使用
         * @type {Number}
         */
        this.pageSpace = 0;
        /**
         * 是否显示网格, Web Reader中暂时不使用
         * @type {Boolean}
         */
        this.isDispGrid = false;
        /**
         * 是否为Facing模式
         * @type {Boolean}
         */
        this.isFacing = false;
        /**
         * 是否倒页面, Web Reader中暂时不使用
         * @type {Boolean}
         */
        this.isReversed = false;
        /**
         * 缩放比例大小
         * @type {Number}
         */
        this.scale = 1.0;
        this.maxScale = 2;
        this.minScale = 0.5;
        /**
         * 是否有封面, Web Reader中暂时不使用
         * @type {Boolean}
         */
        this.isCoverPage = false;
        this.isShowAnnot = false;
    };
    return WebPDF.PDFView.LayoutInfo;
});